export default async () => {
  const config = (await window.api.sql(
    `select * from config where id=1`,
    'findOne',
    {},
  )) as ContentType
  const data = JSON.parse(config.content) as ConfigDataType
  return {
    shortCut: data.shortCut,
    databaseDirectory: data.databaseDirectory,
  }
}
